/**************************************************************************************
* Exit.java
* 
* Exits are cells that contain data on where to send the player when they use the exit.
*************************************************************************************/
package creid.mythos.engine;

public class Exit extends Cell
{

	//Constants/////////////////////////////////////////////////////////////////////////

	private static final long serialVersionUID = -1839706732787485133L;

	//Attributes////////////////////////////////////////////////////////////////////////
	
	private int targetMap;
	private int targetExit;

	//Constructors//////////////////////////////////////////////////////////////////////

	public Exit(Cell terrain, int x, int y, GameMap map, int targetMap, int targetExit)
	{
		super(map, x, y, terrain);
		this.targetMap = targetMap;
		this.targetExit = targetExit;
	}

	//Methods///////////////////////////////////////////////////////////////////////////

	public int getTargetMap()
	{
		return targetMap;
	}

	public void setTargetMap(int exitMap)
	{
		this.targetMap = exitMap;
	}

	public int getTargetExit()
	{
		return targetExit;
	}

	public void setTargetExit(int exitExit)
	{
		this.targetExit = exitExit;
	}
}
